package org.idea.iedis.framework.test;

import org.idea.iedis.framework.server.datastruct.stack.Stack;
import org.idea.iedis.framework.server.datastruct.string.Sds;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * @Author linhao
 * @Date created in 5:22 下午 2021/4/30
 */
public class StackTestCase {

    private Stack stack;

    @Before
    public void setUp() {
        stack = new Stack();
        stack.sPut("1");
        stack.sPut("2");
        stack.sPut("3");
        stack.sPut("4");
    }

    @After
    public void setDown() {
    }

    @Test
    public void testPop() {
        for(int i=0;i<stack.getSize();i++){
            Sds sds = stack.sPop();
            System.out.println(sds.getVal());
        }
    }
}
